<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<title>企业详情</title>
		<link rel="stylesheet" href="/mobile/layui/css/layui.css" />
		<link rel="stylesheet" href="/mobile/css/mobile.css" />
		<script src="/mobile/js/jquery.min.js"></script>
		<script src="/mobile/js/jquery.easing.min.js"></script>
		<script src="/mobile/layui/layui.js"></script>

	</head>
	<body>
		
		<div class="qiye_xiangqing">
			<div class="hd">
				<img src="{$rs.image}">
				<div class="title">{$rs.name}</div>
			</div>
			<div class="bd">
				<ul>
					<li><label>企业地址：</label>{$rs.address}</li>
					<li><label>企业网址：</label><a class="net" href="{$rs.netaddress}" target="_blank">{$rs.netaddress}</a></li>
					<li><label>联系电话：</label><a class="tel" href="tel:{$rs.tel}">{$rs.tel}</a></li>
					<li><label>企业邮箱：</label><span class="email" onclick="copy(this)">{$rs.email}</span></li>
				</ul>
			</div>
			<div class="article">
				<div class="detail">
					<div class="hd" style="align-items: center; padding: 0; border-bottom: none; justify-content: center;">
						<div class="huabian">企业介绍</div>
					</div>
					<div class="content">
						{$rs.content}
					</div>
					
				</div>
			</div>
			<div class="article" style="background: #f5f5f5;">
				<div class="detail">
					<div class="hd" style="align-items: center; padding: 0; border-bottom: none; justify-content: center;">
						<div class="huabian">企业产品({:count($rs.products)})</div>
					</div>
					<ul class="goodslist" style="padding: 0;">
						{volist name="$rs.products" id="item" empty="$empty"}
						<a href="{:url('product/detail',['id'=>$item.id])}">
						<li 
						{switch name="item.biaoji"}
						    {case value="1"}class="youzhi"{/case}
						    {case value="2"}class="chuangxin"{/case}
						    {default /}
						{/switch}
						
						><div class="img" style="background-image: url({$item.image});"></div>
							<div class="title" style="border-bottom: none;">{$item.name}</div>
							<div class="desc">{$rs.name}</div>
						</li></a>
						{/volist}
					</ul>
					
					
				</div>
			</div>
		</div>
		



	</body>
	<script>
		var layer;
		layui.use(function(){
		  layer = layui.layer;

		});  
		function copy(e) {
			var text=$(e).text();
		  const input = document.createElement('textarea');
		  input.value = text;
		  document.body.appendChild(input);
		  input.select();
		  document.execCommand('copy');
		  document.body.removeChild(input);
		  layer.msg('复制成功');
		}
	</script>
</html>